" ==============================================================================
" File         : clearblack.vim
" Author       : HuangLF
" Last Change  : 2015-1-28 11:07:38
" Description  : vim black after-color scheme, about all plugins, for gui & term
" ==============================================================================
"       ___  _                      ___   _              _                      
"     / __// /   __   _   __ _     / _ \/ /   _    ___ / /_         _           
"    / /  / /  / _ \/  \ /  _/    /  __/ /  /  \ / __//   /     _ _/__/_ __   _ 
"   / /_ / /__/  __/ / // /      / _  / /__/ / // /_ /  \     __/ /  /  /_//_/  
"   \___/____/\___/\___/_/      /____/____/\___/\___/_/\_/   /_/_/  /_ /_ /     
" ==============================================================================
" Settings:
" ____{ 状态栏显示信息项
    " Path: Relative
    hi User1        gui=underline,bold guifg=#bcbcbc guibg=#000000  cterm=underline,bold ctermfg=250 ctermbg=16
    " Flags: [RO] [+]
    hi User2        gui=underline,bold guifg=#df0000 guibg=#000000  cterm=underline,bold ctermfg=160 ctermbg=16
    " Normal: 
    hi User3        gui=underline,bold guifg=#808080 guibg=#000000  cterm=underline,bold ctermfg=244 ctermbg=16
    " Position: <**/**,**-0x**>
    hi User4        gui=underline,bold guifg=#00af00 guibg=#000000  cterm=underline,bold ctermfg=34 ctermbg=16
    " Special: *
    hi User5        gui=underline,bold guifg=#00af00 guibg=#000000  cterm=underline,bold ctermfg=34 ctermbg=16

" }_____________________________________________________________________________
" ____{ 运算符和其他符号
    if has("autocmd")
        " 设置为读取缓冲区时自动调用
        " autocmd BufEnter *.c,*.cpp,*.cxx : call _myset_SyntaxAfter()
        " autocmd BufEnter *.h : call _myset_SyntaxAfter()
        " autocmd BufEnter *.sh,*.vim : call _myset_SyntaxAfter()
        " autocmd BufEnter *.wiki : call _myset_SyntaxAfter_wiki()
    endif
    function! _myset_SyntaxAfter()
        syntax keyword Boolean true false NULL TRUE FALSE
        syntax keyword Statement namespace stderr stdin stdout new this delete

        " syntax match _Block "[{}]"
        " syntax match _Bracket "[\[\]]"
        " syntax match _Operator display "[-+&|<>=!\/~.,;:*%&^?()]"
        " syntax region _Comment start="\/\*" end="\*\/"
        " syntax match _Comment "\/\/.*$"

        " hi link _Bracket Operator
        " hi link _Operator Operator
        " hi link _Comment Comment
        " hi link _Block Operator
    endfunction
    function! _myset_SyntaxAfter_wiki()
        hi Normal       guifg=#bcbcbc guibg=#262626     ctermfg=250 ctermbg=235
        " wiki中启用自动换行
        set wrap
    endfunction
" }_____________________________________________________________________________
" EXVIM:
    " ____{ ex-utility  通用脚本函数库
        hi exTransparent    guifg=bg                    ctermfg=bg
        hi exCommentLable   guifg=#808080               ctermfg=244
        hi exConfirmLine    guibg=#005f5f               ctermbg=23
        hi exTargetLine     guibg=#005f5f               ctermbg=23
    " }_________________________________________________________________________
    " ____{ ex-project  工程管理
        " 高亮其他类型的文件(此处设置无效, 必须
        "         在bundle/ex-project/syntax/exproject.vim中添加以下内容) {
            syntax match ex_pj_ft_clang_src '.*\.\(c\|cpp\|cxx\)\>' contained
            syntax match ex_pj_ft_clang_header '.*\.\(h\)\>' contained
            syntax match ex_pj_ft_assembly '.*\.s\>' contained
            syntax match ex_pj_ft_script '.*\.\(sh\|vim\|bat\)\>' contained
            syntax match ex_pj_ft_bin '.*\.\(bin\|exe\|ko\)\>' contained
            syntax match ex_pj_ft_lib '.*\.\(a\|so\|lib\|dll\)\>' contained
            syntax match ex_pj_ft_doc '.*\.\(txt\|ini\|log\|doc\|dat\)\>' contained
            syntax match ex_pj_ft_compress '.*\.\(tar\|gz\|bz2\|zip\|rar\)\>' contained
            syntax match ex_pj_ft_makefile '\([Mm]akefile\)\>' contained
            syntax match ex_pj_ft_ignore '.*\.\(o\|elf\|map\|out\|files\|scc\|taghl\|dep\|ewd\|ewp\|eww\)\>' contained

            syntax cluster ex_pj_special_files contains=
                \ex_pj_ft_clang_src
                \,ex_pj_ft_clang_header
                \,ex_pj_ft_assembly
                \,ex_pj_ft_script
                \,ex_pj_ft_bin
                \,ex_pj_ft_lib
                \,ex_pj_ft_doc
                \,ex_pj_ft_compress
                \,ex_pj_ft_makefile
                \,ex_pj_ft_ignore

            hi ex_pj_ft_clang_src       guifg=#5faf00               ctermfg=70
            hi ex_pj_ft_clang_header    guifg=#00afdf               ctermfg=38
            hi ex_pj_ft_assembly        gui=italic guifg=#5faf00    ctermfg=70
            hi ex_pj_ft_script          gui=italic guifg=#df5f00    ctermfg=166
            hi ex_pj_ft_bin             gui=bold guifg=#5fdf00      cterm=bold ctermfg=76
            hi ex_pj_ft_lib             gui=italic,bold guifg=#dfdf00 cterm=bold ctermfg=184
            hi ex_pj_ft_doc             guifg=#dfdfdf               ctermfg=188
            hi ex_pj_ft_compress        gui=italic,bold guifg=#ff8700 cterm=bold ctermfg=208
            hi ex_pj_ft_makefile        gui=bold guifg=#df0000      cterm=bold ctermfg=160
            hi ex_pj_ft_ignore          guifg=#606060               ctermfg=241
        " }
        " 插件高亮设置 {
            " 帮助信息
            hi ex_pj_help       guifg=#808080 ctermfg=244
            hi ex_pj_help_key   guifg=#bcbcbc ctermfg=250
            hi ex_pj_help_comma guifg=#808080 ctermfg=244
            " 文件夹折叠符号
            hi ex_pj_fold       guifg=#808080 ctermfg=244
            " 目录名
            hi ex_pj_folder_name gui=bold guifg=#ffdf5f     cterm=bold ctermfg=221
            " 标签"[F]"
            hi ex_pj_folder_label guifg=#9e9e9e ctermfg=247
            " 目录树标识线
            hi ex_pj_tree_line  guifg=#808080 ctermfg=241
            " 文件名
            hi ex_pj_file_name  guifg=#bcbcbc ctermfg=250
            " 工程文件
            hi ex_pj_ft_exvim   gui=bold guifg=#df8700 cterm=bold ctermfg=172
            " 异常文件
            hi ex_pj_ft_error   guifg=#af0000 ctermfg=124
        " }
    " }_________________________________________________________________________
    " ____{ ex-gsearch  全局搜索
        " 插件高亮设置 {
            hi ex_gs_header     guifg=#bcbcbc           ctermfg=244
            hi ex_gs_filename   guifg=#00af00           ctermfg=34
            hi ex_gs_linenr     guifg=#bcbcbc           ctermfg=250

            hi ex_gs_help       guifg=#808080 ctermfg=244
            hi ex_gs_help_key   guifg=#bcbcbc ctermfg=250
            hi ex_gs_help_comma guifg=#808080 ctermfg=244
        " }
    " }_________________________________________________________________________
    " ____{ ex-tagbar  代码标签浏览
        " 插件高亮设置 {
            highlight TagbarHelp       guifg=#808080                ctermfg=244
            highlight TagbarHelpKey    guifg=#bcbcbc                ctermfg=250
            highlight TagbarHelpTitle  guifg=#808080                ctermfg=244

            highlight TagbarKind       guifg=#00afdf                ctermfg=38
            highlight TagbarNestedKind guifg=#0087ff                ctermfg=33
            highlight TagbarScope      guifg=#87df87                ctermfg=114
            highlight TagbarType       guifg=#5faf5f                ctermfg=71
            highlight TagbarSignature  guifg=#9e9e9e                ctermfg=247
            highlight TagbarPseudoID   guifg=#9e9e9e                ctermfg=247
            highlight TagbarFoldIcon   guifg=#808080                ctermfg=241
            highlight TagbarHighlight  guifg=#d0d0d0 guibg=#005f5f  ctermfg=252 ctermbg=23

            highlight TagbarAccessPublic    guifg=#5fdf5f           ctermfg=77
            highlight TagbarAccessProtected guifg=#5faf5f           ctermfg=71
            highlight TagbarAccessPrivate   guifg=#5f5f5f           ctermfg=59
            highlight link TagbarVisibilityPublic    TagbarAccessPublic
            highlight link TagbarVisibilityProtected TagbarAccessProtected
            highlight link TagbarVisibilityPrivate   TagbarAccessPrivate
        " }
    " }_________________________________________________________________________
    " ____{ ex-easyhl  临时高亮<A-1/2/3/4> / <A-0>
        " 插件高亮设置 {
            hi EX_HL_cursorhl   gui=none guibg=#000000 term=none cterm=none ctermbg=Grey
            hi EX_HL_label1     gui=none guibg=lightcyan term=none cterm=none ctermbg=lightcyan
            hi EX_HL_label2     gui=none guibg=LightMagenta term=none cterm=none ctermbg=lightmagenta
            hi EX_HL_label3     gui=none guibg=LightRed term=none cterm=none ctermbg=lightred
            hi EX_HL_label4     gui=none guibg=LightGreen term=none cterm=none ctermbg=lightgreen
        " }
    " }_________________________________________________________________________
" OTHER:
" ____{ nerdtree: invoke by :NERDTreeToggle
    hi NERDTreeRO       guifg=#808080 guibg=bg              ctermfg=244
    hi DoxygenComment   guifg=#808080 guibg=bg              ctermfg=244
    hi DoxygenKeyword   guifg=#FF8080 guibg=bg              ctermfg=210
    hi DoxygenLink      guifg=#80D080 guibg=bg              ctermfg=114
    hi DoxygenTable     guifg=#80D080 guibg=bg              ctermfg=114
" }_____________________________________________________________________________
" ____{ TagHighlight, 标签高亮插件
    hi Class                ctermfg=77  cterm=bold,underline  guifg=#5fdf5f   gui=bold,underline
    hi Structure            ctermfg=77  cterm=bold,underline  guifg=#5fdf5f   gui=bold,underline
    hi DefinedName          ctermfg=167 cterm=bold  guifg=#df5f5f   gui=bold
    hi Member               ctermfg=110             guifg=#87afdf   
    hi EnumerationName      ctermfg=167 cterm=bold  guifg=#df5f5f   gui=bold
    hi EnumerationValue     ctermfg=167 cterm=bold  guifg=#df5f5f   gui=bold
    hi LocalVariable        ctermfg=250             guifg=#bcbcbc
    hi GlobalVariable       ctermfg=28  cterm=bold  guifg=#008700   gui=italic,bold
" }_____________________________________________________________________________
" ____{ vim-indent-guides: invoke by <leader>ig  缩进指示条
    hi IndentGuidesOdd  guifg=#3a3a3a guibg=#1c1c1c     ctermfg=237 ctermbg=234
    hi IndentGuidesEven guifg=#4e4e4e guibg=#303030     ctermfg=239 ctermbg=236
" }_____________________________________________________________________________
" ____{ xptemplate 代码片段补全
    " 片段补全中当前的填写项
    hi link XPTcurrentPH DiffChange
    " 随当前项自动填写的内容
    hi link XPTfollowingPH CursorLine
    " 其他需要填写的项
    hi link XPTnextItem IncSearch
" }_____________________________________________________________________________

"highlighting for Markdown groups
hi link mkdString        String
hi link mkdCode          String
hi link mkdIndentCode    String
hi link mkdFootnote      Comment
hi link mkdBlockquote    Comment
hi link mkdLineContinue  Comment
hi link mkdListItem      Identifier
hi link mkdRule          Identifier
hi link mkdLineBreak     IncSearch
hi link mkdFootnotes     htmlLink
hi link mkdLink          htmlLink
hi link mkdURL           htmlString
hi link mkdInlineURL     htmlLink
hi link mkdID            Identifier
hi link mkdLinkDef       mkdID
hi link mkdLinkDefTarget mkdURL
hi link mkdLinkTitle     htmlString
hi link mkdMath          Statement
hi link mkdDelimiter     Delimiter

